﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DHQGHN.DAL.Models;
using DHQGHN.PM0.Models.Admin;

namespace DHQGHN.PM0
{
    public class GlobalInfo
    {
        public string FullName
        {
            get
            {
                return (string)HttpContext.Current.Session["Session_User_FullName"];
            }

            set
            {
                HttpContext.Current.Session["Session_User_FullName"] = value;
            }
        }

        public int CountDay
        {
            get
            {
                return (int)HttpContext.Current.Session["Session_User_CountDay"];
            }

            set
            {
                HttpContext.Current.Session["Session_User_CountDay"] = value;
            }
        }

        public List<MenuModel> lstMenu
        {
            get
            {
                return (List<MenuModel>)HttpContext.Current.Session["Session_All_Menu"];
            }

            set
            {
                HttpContext.Current.Session["Session_All_Menu"] = value;
            }
        }

        public UserModel User
        {
            get
            {
                return (UserModel)HttpContext.Current.Session["Session_Current_User"];
            }

            set
            {
                HttpContext.Current.Session["Session_Current_User"] = value;
            }
        }
        public IEnumerable<AdminMenuModel> AdminMenus
        {
            get
            {
                return (IEnumerable<AdminMenuModel>)HttpContext.Current.Session["Session_User_AdminMenu"];
            }

            set
            {
                HttpContext.Current.Session["Session_User_AdminMenu"] = value;
            }
        }

        public List<string> MenuUrl
        {
            get
            {
                return (List<string>)HttpContext.Current.Session["Session_User_MenuUrl"];
            }

            set
            {
                HttpContext.Current.Session["Session_User_MenuUrl"] = value;
            }
        }
    }
}